﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace GitTool
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            DependentFiles.AutoUpdate();

            //if (args == null || args.Length == 0) args = new string[] { @"D:\sci\Visual Studio 2008\Projects\GitTool\GitTool\bin\Debug\GitDir\empty" };
            if (args == null || args.Length == 0)
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new Form_Git());
            }
            else
            {
                foreach (string dir in args) GitTool.upLoadGitDir(dir);
            }
        }

    }
}
